var display_nodes = [],
    display_links = [],
    raw_data = []; 
    
    
    
function loadData() {    
//"num_annots_A":11,"num_annots_B":3,"simJ":0.085365854,"BMAasymJ":null,"BMAsymJ":null,"SimGIC":null,"BMAasymIC_terms"
	jQuery.ajax({ url: "data/omim_mgi.json",
		async:false,
		dataType: 'json', 
		success: function(data){
			data.forEach (function (comp_data, index) {
				data_entry = {
						a_id : comp_data.A.id.value,
				        a_label : (comp_data.A.label) ? comp_data.A.label.value : comp_data.A.id.value,
						b_id : comp_data.B.id.value,
				        b_label : (comp_data.B.label) ? comp_data.B.label.value : comp_data.B.id.value,
				        num_annots_A : (comp_data.num_annots_A) ? comp_data.num_annots_A.value : null,
				        num_annots_B : (comp_data.num_annots_B) ? comp_data.num_annots_B.value : null,
				        simj : (comp_data.simJ) ? comp_data.simJ.value : null,
				        bma_asymj : (comp_data.BMAasymJ) ? comp_data.BMAasymJ.value : null,
				        bma_symj : (comp_data.BMAsymJ) ? comp_data.BMAsymJ.value : null,
				        simgic : (comp_data.SimGIC) ? comp_data.SimGIC.value : null
				};
				raw_data.push(data_entry);	
		   });
	   }
	});
}

function build_nodes_links(new_array) {
    new_array.forEach( function (node_item, index) {
    
    
    });
}